tests: workarounds to keep treeview scrolling tests running
authorCosimo Cecchi <cosimoc@gnome.org>
Tue, 19 Feb 2013 00:14:13 +0000 (19:14 -0500)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 19 Feb 2013 00:39:12 +0000 (19:39 -0500)
commit4c130ac90497ba580a8411759de41180ca267876
tree819a783e8f7d8e7884963aa56285f46e2a42df7b
parentafc57cabf036fff13c9f8eeb89efde8b43b9ee9c
tests: workarounds to keep treeview scrolling tests running

We can't safely examine allocations synchronously using
gtk_main_iteration(), as there might be not enough time for a new paint
clock tick to have expired and the allocation set on the widget.
Work this around adding g_usleep() calls before processing pending
mainloop events.
gtk/tests/treeview-scrolling.c